import { Empty } from "../../../../constants";

export interface SaveMenu<T = Empty> {
  id?: T,
  parentId?: string,
  name: string | undefined,
  path: string,
  component: string | undefined,
  meta: {
    title: string,
    icon: string,
  },
  children?: SaveMenu<any>[] | [],
}

export interface UpdateMenu extends SaveMenu<String> { }

export interface queryTreeMenu {
  title?: string,
  isAllMenus: boolean,
}


export interface SavePermission {
  name: string,
  url: string,
  desc?: string,
  menuId?: string,
  method?: string,
}